package excerciceATM;

public class CashDispenser {
	
	private final static int initial_count = 500;
	private int count;
	
	public CashDispenser() {
		count = initial_count;
	}
	
	public void dispenseCash( int amount ) {
		int billsRequiered = amount;
		count -= billsRequiered;
	}
	
	public boolean isSufficientCashAvaible ( int amount ) {
		int billsRequired = amount;
		if ( count >= billsRequired ) {
			return true;
		} else {
			return false;
		}
	}

}
